<?php header("Content-type: text/html; charset=utf-8");?>
<?php
    // Si los usuarios logueados son los autorizados
    if($session->read('Auth.User.id') > 3 AND $session->read('Auth.User.id') <> 16 ){
        exit;
    }
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Epicrisis</title>

	<link href="/favicon.ico" type="image/x-icon" rel="icon" />
    <link href="/css/cake.generic.css" rel="stylesheet" type="text/css" />
    <link href="/css/grid.css" rel="stylesheet" type="text/css" />
    <link href="/css/reset.css" rel="stylesheet" type="text/css" />
    <link href="/css/text.css" rel="stylesheet" type="text/css" />
    <link href="/css/epicrisis.css" rel="stylesheet" type="text/css" />
    <?php echo $this->Html->css('chosen'); ?>
	<?php echo $this->Html->css('start/jquery-ui-1.8.18.custom'); ?>
    <?php echo $this->Html->script('jquery-1.6.2.min'); ?>
	<?php echo $javascript->link('jquery-ui-1.8.18.custom.min'); ?>
    <?php echo $javascript->link('chosen.jquery.min'); ?>
    <?php echo $this->Html->script('jquery.validate'); ?>
	<?php echo $this->Html->css('/js/jquery-autocomplete/jquery.autocomplete'); ?>
	<?php echo $javascript->link('jquery-autocomplete/jquery.autocomplete'); ?>
    <script type="text/javascript" src="/js/validate/messages_es.js"></script>

</head>
<body>
		
    <div class="container_16">
        <div class="grid_3" style="height:100px;">
		
            <img src="/images/logo.png" style="margin-top:20px;float:left;"/>
			
        </div>
        <div class="grid_13" style="height:100px;">&nbsp;</div>
        <div class="clear"></div>

        <div class="grid_12 nav_bar_session">&nbsp;
                <?php echo $session->flash(); ?>
        </div>
        <div class="grid_4 nav_bar_title">&nbsp;
                <?php if (!empty($title_nav_bar)) { echo strtoupper($title_nav_bar); } ?>
        </div>
        <div class="clear"></div>
        <hr style="border:1px solid #c0c0c0: margin-bottom:20px;margin-top:20px;"/>
        
        <div class="grid_4">
            <?php echo $this->element('side_bar'); ?>
        </div>
        <div class="grid_12 alpha omega">
            <?php if (!empty($content_for_layout)) { echo $content_for_layout; } ?>    
        </div>
        <div class="clear"> </div> 

        
        <div class="grid_16" id="footer">
                &copy; Epicrisis.
        </div>
        <div class="clear"> </div>

    </div>
</body>
</html>